import api from '../../api'
import { GET_RESOURCE_TABLE } from '../actionType'

// 房源管理
export const getResource = () => {
    return (dispatch) => {
        api.getResourceTable().then(res => {
            dispatch({
                type: GET_RESOURCE_TABLE,
                data: res.data.data
            })
        })
    }
}